//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.vere.orm.db.pool;

import com.vere.orm.db.Configuration;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.logging.Logger;

public class NoPoolConnection extends ConnectionPool {
    public NoPoolConnection() {
    }

    public Connection getConnection() throws SQLException {
        Connection conn = null;

        try {
            Class.forName(Configuration.getDataSourcePropery("dbDriver"));
            conn = DriverManager.getConnection(Configuration.getDataSourcePropery("dbUrl"), Configuration.getDataSourcePropery("dbUsername"), Configuration.getDataSourcePropery("dbPassword"));
        } catch (SQLException var3) {
            var3.printStackTrace();
        } catch (ClassNotFoundException var4) {
            var4.printStackTrace();
        }

        return conn;
    }

    public void close(Connection conn, ResultSet rs) {
        if (rs != null) {
            try {
                rs.close();
                rs = null;
            } catch (SQLException var5) {
                var5.printStackTrace();
            }
        }

        if (conn != null) {
            try {
                conn.close();
                conn = null;
            } catch (SQLException var4) {
                var4.printStackTrace();
            }
        }

    }

	@Override
	public Logger getParentLogger() throws SQLFeatureNotSupportedException {
		// TODO Auto-generated method stub
		return null;
	}
}
